<ui:composition 
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:h="http://xmlns.jcp.org/jsf/html">
    
    <h:form>
        
        <ui:repeat value="#{aplicationBean.rubros}" var="r">
            
            <p:dataList value="#{r.rubros}" var="r1" >
    
                <p:commandLink actionListener="#{buscadorBean.buscar}" ajax="false"
                                       update=":formulario,:topbarForm" process="@this,:topbarForm">
                            
                        <f:attribute name="idRurbo1" value="#{r.id}" />
                        <f:attribute name="idRurbo2" value="#{r1.id}" />
                        <f:setPropertyActionListener target="#{buscadorBean.rubro1}" value="#{r}" />
                        <f:setPropertyActionListener target="#{buscadorBean.rubro2}" value="#{r1}" />

                        #{r1.descripcion} 
                </p:commandLink> 
            
            </p:dataList>             
           
        </ui:repeat>  
    
    </h:form>        
        
    
 
</ui:composition>
